export default {
	install(app) {
		app.mixin({
			onShareAppMessage(res) {
				if (res.from === 'button') { // 来自页面内分享按钮
					console.log(res.target)
				}
				return {
					title: '自定义分享标题',
					path: '/pages/index/index'
				}
			},
			onShareTimeline() {
				return {
					title: '自定义分享标题',
					path: '/pages/index/index'
				}
			}
		})
	}
}